import { axios } from '@/utils/request'

const prefix = '/settle/settleArchive'

/**
 * 客户下拉列表
 * @param
 * @returns {AxiosPromise}
 */
export function baseCustomersDropDown() {
  return axios({
    url: '/baseCustomers/dropDown',
    method: 'GET'
  })
}

export function queryByCustomersCode(param) {
  return axios({
    url: prefix + '/queryByCustomersCode',
    method: 'GET',
    params:param
  })
}
/**
 * 获取详情
 * @param id
 * @returns {AxiosPromise}
 */
export function getObj(id) {
  return axios({
    url: '/baseCustomers/getInfoById/' + id,
    method: 'GET'
  })
}


/**
 * 结算管理-通过id查询
 * @param params
 * @returns {AxiosPromise}
 */
export function queryById(params) {
  return axios({
    url:'/settle/settleSettlementBill/queryById',
    method: 'GET',
    params: {
      ...params
    }
  })
}

/**
 * 查询其他费用
 * @param params
 * @returns {*}
 * @constructor
 */
export function OtherFees(params) {
  return axios({
    url:prefix + '/OtherFees',
    method:'GET',
    params:params
  })
}

/**
* 查询已付费用
* @param params
* @returns {*}
* @constructor
*/
export function accountPayment(params) {
  return axios({
    url:prefix + '/accountPayment',
    method:'GET',
    params:params
  })
}

/**
 * 查询已收费用
 * @param params
 * @returns {*}
 * @constructor
 */
export function accountReceipt(params) {
  return axios({
    url:prefix + '/accountReceipt',
    method:'GET',
    params:params
  })
}

/**
 * 查询折算费用
 * @param params
 * @returns {*}
 * @constructor
 */
export function convertFees(params) {
  return axios({
    url:prefix + '/convertFees',
    method:'GET',
    params:params
  })
}

/**
 * 查询丢赔费用
 * @param params
 * @returns {*}
 * @constructor
 */
export function lossOfCompensationCosts(params) {
  return axios({
    url:prefix + '/lossOfCompensationCosts',
    method:'GET',
    params:params
  })
}

/**
 * 查询上期结转
 * @param params
 * @returns {*}
 * @constructor
 */
export function preArchive(params) {
  return axios({
    url:prefix + '/preArchive',
    method:'GET',
    params:params
  })
}

/**
 * 查询本期应收租金
 * @param params
 * @returns {*}
 * @constructor
 */
export function rentReceivableForThePeriod(params) {
  return axios({
    url:prefix + '/rentReceivableForThePeriod',
    method:'GET',
    params:params
  })
}

/**
 * 查询报停费用
 * @param params
 * @returns {*}
 * @constructor
 */
export function reportingAndParkingFees(params) {
  return axios({
    url:prefix + '/reportingAndParkingFees',
    method:'GET',
    params:params
  })
}

/**
 * 费用类型下拉列表
 * @param
 * @returns {AxiosPromise}
 */
export function baseFeeTypeDropDown() {
  return axios({
    url: '/baseFeeType/dropDown',
    method: 'GET'
  })
}

/**
 * 丢损仓库
 * @param
 * @returns {AxiosPromise}
 */
export function lostWarehouseArray() {
  return axios({
    url:'/baseWarehouse/dropDown',
    method: 'GET'
  })
}
